<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="conversation.css" rel="STYLESHEET" type="text/css">
<title>Dialogue Act Label List</title>
<!--        Javascripts    -->
<jsp:include page="scripts/confirm.js" />
</head>
<body onload="initFilter();">
<!--        Header         -->
<jsp:include page="scripts/headerEdit.jsp" >
    <jsp:param name="title" value="Dialogue Act Label List" />
</jsp:include>
<!--        Filter         -->
<jsp:include page="scripts/filter.jsp"/>
<!--        List           -->
<div class="list">
  <c:if test="${(! empty anno_user) && anno_user.role == 1}">
	  <p>	
	    <a href="enterdalabel.html">Click here</a> to add a new 
	    dialogue act label, or select one from the list below 
	    to edit.
	   </p>
	 </c:if>
	<table>
		<tr>
      <th>ID</th>
      <th>Scheme</th>
    	<th>Dimension</th>     
      <th width="180">Label</th>			
			<th>Description</th>
      <th># Labeled</th>
			<th></th>
		</tr>
		<c:forEach items="${da_labels}" var="dalabel">
		<tr>
			<td>
				<a href="enterdalabel.html?daLabelId=<c:out value="${dalabel.dialogueActLabelId}" />">
					<c:out value="${dalabel.dialogueActLabelId}" />
				</a>
			</td>
      <td><c:out value="${dalabel.dialogueActDimension.dialogueActScheme.scheme}"/></td>
			<td><c:out value="${dalabel.dialogueActDimension.dimension}"/></td>
			<td><c:out value="${dalabel.label}" /></td>
			<td><c:out value="${dalabel.description}" /></td>
            <td> 
            <c:if test = "${anno_user.role == 1}"> <c:out value="${dalabel.numLabeled}"/> / </c:if> 
            <c:out value="${dalabel.dialogueActNum}"/> </td>	               
			<td>		
			  <c:if test = "${anno_user.role == 1}">
				<a href="enterdalabel.html?daLabelId=<c:out value="${dalabel.dialogueActLabelId}" />">
					[edit]
				</a>
				<a href="mergedalabel.html?daLabelId=<c:out value="${dalabel.dialogueActLabelId}" />">
					[merge]
				</a>
				<a onClick="return confirmSubmit()" href="dalabellist.html?delDaLabelId=<c:out value="${dalabel.dialogueActLabelId}" />">
					[delete]
				</a>
				</c:if>
				<c:if test="${annot_user.role != 1 }">
				<a href="enterdalabel.html?daLabelId=<c:out value="${dalabel.dialogueActLabelId}" />">
					[examples]
				</a>								
				</c:if>
			</td>
		</tr>
		</c:forEach>
	</table>
</div>
</body>
</html>
